package com.cy.pj.sys.web.controller;

import com.cy.pj.sys.dao.SysNoticeDao;
import com.cy.pj.sys.pojo.SysNotice;
import com.cy.pj.sys.service.SysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/notice/")
@RestController
public class SysNoticeController {
    @Autowired
    private SysNoticeService sysNoticeService;
    @RequestMapping("/doFindNotices")
    public List<SysNotice> doFindNotices(SysNotice notice){
        return sysNoticeService.findNotices(notice);
    }

}
